﻿@model IEnumerable<RMS.Models.Company>

@{
    ViewBag.Title = "Index";
}

<h2>Companies Index</h2>
<p>
    
</p>
<table>
    <tr>
        <th></th>
        <th>
            Name
        </th>
        <th>
            Share Information
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @if (item.IsShared)
            {
            @Html.ActionLink("Details", "Details", new { id = item.Id })
            }
            else
            {
            }
        </td>
        <td>
            @item.Name
        </td>
        <td>
            @item.IsShared
        </td>
    </tr>
}

</table>

